package com.ruoyi.system.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.Page;
import com.ruoyi.system.domain.SmsHomeAdvertise;

/**
 * <p>
 * 首页轮播广告表 服务类
 * </p>
 *
 * @author flowr
 * @since 2019-04-19
 */
public interface ISmsHomeAdvertiseService extends IService<SmsHomeAdvertise> {

	Object page(Page<SmsHomeAdvertise> page, QueryWrapper<SmsHomeAdvertise> queryWrapper);

	boolean save(SmsHomeAdvertise entity);

	boolean removeById(Long id);

	SmsHomeAdvertise getById(Long id);

	boolean removeByIds(List<Long> ids);
	
	boolean updateById(SmsHomeAdvertise entity);
	
	 /**
     * 修改推荐排序
     */
    int updateSort(Long id, Integer sort);
    
    /**
     * 更新推荐状态
     */
    int updateRecommendStatus(List<Long> ids, Integer recommendStatus);
}
